package zzu.patterns.creational.abstractfactory;

import zzu.patterns.creational.abstractfactory.color.Color;
import zzu.patterns.creational.abstractfactory.shape.Circle;
import zzu.patterns.creational.abstractfactory.shape.Rectangle;
import zzu.patterns.creational.abstractfactory.shape.Shape;

public class ShapeFactory implements AbstractFactory {
    public Color getColor(String color) {
        return null;
    }

    public Shape getShape(String shape) {
        if ("Circle".equalsIgnoreCase(shape)) {
            return new Circle();
        } else if ("Rectangle".equalsIgnoreCase(shape)) {
            return new Rectangle();
        }
        return null;
    }
}
